<?php if( MyConstants::isMultiLng() ): /* If site is multi language */ ?>

    <?php foreach( MyConstants::getLngList() as $key => $lng ): ?>
	    <?php if( $sf_user->getCulture() == $key ): ?>
	        <div class="lang_active">
	        <?php echo __($lng); ?></div>
	    <?php else: ?>
	        <div class="lang">
	        <?php echo link_to(
	                        __($lng)
	                        , 'system/setlng?lng=' . $key
	                    ) ?></div>
	    <?php endif; ?>
    <?php endforeach; ?>

<?php endif; ?>
